@(active: String = "")(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
<div class="dashboard-nav">
  <div class="container">
    <a href="@path/" @if(active == ""){ class="active"}>
      <img src="@assets/common/images/menu-feed.png">
      News Feed
    </a>
    @if(loginAccount.isDefined){
      <a href="@path/dashboard/pulls" @if(active == "pulls" ){ class="active"}>
        <img src="@assets/common/images/menu-pulls.png">
        Pull Requests
      </a>
      <a href="@path/dashboard/issues" @if(active == "issues"){ class="active"}>
        <img src="@assets/common/images/menu-issues.png">
        Issues
      </a>
    }
  </div>
</div>
<style type="text/css">
div.dashboard-nav {
  border-bottom: 1px solid #ddd;
  text-align: right;
  height: 32px;
  margin-bottom: 20px;
}

div.dashboard-nav a  {
  line-height: 10px;
  margin-left: 20px;
  padding-bottom: 13px;
  padding-left: 4px;
  padding-right: 4px;
  color: #888;
}

div.dashboard-nav a:hover  {
  text-decoration: none;
}

div.dashboard-nav a.active {
  border-bottom: 2px solid #bb4444;
  color: #333;
}
</style>